function make_figure_4_pretty(X1, YMatrix1)
%CREATEFIGURE(X1, YMatrix1)
%  X1:  vector of x data
%  YMATRIX1:  matrix of y data

%  Auto-generated by MATLAB on 22-Feb-2021 13:34:44

% Create figure
figure1 = figure('Color',[1 1 1]);

% Create axes
axes1 = axes('Parent',figure1,'Position',[0.13 0.11 0.775 0.815]);
hold(axes1,'on');

% Create multiple lines using matrix input to plot
plot1 = plot(X1,YMatrix1,'LineWidth',2);
set(plot1(1),'DisplayName','delta-noise',...
    'Color',[0.149019607843137 0.149019607843137 0.149019607843137]);
set(plot1(2),'Color',[0.8 0.8 0.8]);

% Create xlabel
xlabel({'Precision of Public Signal'});

% Uncomment the following line to preserve the X-limits of the axes
xlim(axes1,[0 1.51]);
% Uncomment the following line to preserve the Y-limits of the axes
ylim(axes1,[-0.502 0.302]);
% Set the remaining axes properties
set(axes1,'GridLineStyle','none','XTick',[0 0.5 1 1.5],'XTickLabel',...
    {'0','0.5','1.0','1.5','2.0'},'YTick',...
    [-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3],'YTickLabel',...
    {'-0.50','-0.40','-0.30','-0.20','-0.10','0','0.10','0.20', '0.30'});
% Create textbox
annotation(figure1,'textbox',...
    [0.1635 0.600000000000002 0.131142857142857 0.0928571428571433],...
    'Color',[0.149019607843137 0.149019607843137 0.149019607843137],...
    'String',{'\delta'},...
    'FontWeight','bold',...
    'FontSize',12,...
    'FitBoxToText','off',...
    'EdgeColor','none');

